<template>
  <div>
      <div style="font-size:22px;color:#f0f"> 动态路由参数</div>
      <div>
           <el-link type="primary" @click="detail()">查看详情</el-link>
      </div>
  </div>
</template>

<script>
export default {
    data(){
        return{
            id:0
        }
    },
    methods:{
        detail(){
            this.$router.push({
                path:`/route/detail/${this.id}`,
            })
        }
    }
}
</script>

<style>

</style>